from messAround.model.sougou import SougouTopicModel
import messAround.util.help as util


# 搜狗实时热搜
class SougouTopicPipeline(object):

    @staticmethod
    def process_item(item, spider):
        return util.make_write_data({
            'title': item["title"],
            'link': item["link"],
            'trend': item["trend"],
            'hot_index': item["hot_index"],
        }, item, SougouTopicModel)
